//
//  CustomMoviePlayerViewController.h
//
//  Copyright iOSDeveloperTips.com All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>

#define MPMoviePlayerStartNotification					@"MPMoviePlayerStartNotification"
#define MPMoviePlayerPlayBackStateChangedNotification	@"MPMoviePlayerPlayBackStateChangedNotification"
#define MPMoviePlayerEndNotification					@"MPMoviePlayerEndNotification"

@interface CustomMoviePlayerViewController : MPMoviePlayerViewController 
{
	NSTimer * cachePlaybackTimer;
	
	UIActivityIndicatorView * aiview;
	
	BOOL bPortraitLimited;
	
	BOOL bInitPlay;
	
	NSURL * playBackCacheURL;
	
	NSTimeInterval playbackTimeCurrent;
}

@property (nonatomic, copy) NSURL * playBackCacheURL;
@property (nonatomic, assign) BOOL bCachePlaybackTime;

- (void)setContentURL:(NSURL *)contentURL;
- (void)setPortraitLimited:(BOOL)bLimit;
- (UIView *)getControlOverlayView;

@end
